package com.rightsidetech.system.service;

import com.github.pagehelper.PageInfo;
import com.rightsidetech.commom.base.DelReq;
import com.rightsidetech.commom.base.PageRequest;
import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.system.dtos.request.news.NewsTypeReq;
import com.rightsidetech.system.dtos.request.news.NewsTypeSaveReq;
import com.rightsidetech.system.dtos.request.news.NewsTypeUpdateReq;
import com.rightsidetech.system.dtos.response.news.NewsTypePageResp;

import java.util.List;

public interface SysNewsTypeService {

    ResponseData save(NewsTypeSaveReq req, String createrName, Long createrId);

    ResponseData update(NewsTypeUpdateReq req, String updaterName, Long updaterId);

    ResponseData<PageInfo<NewsTypePageResp>> page(PageRequest req);

    ResponseData<List<NewsTypePageResp>> selectList();

    ResponseData<List<NewsTypePageResp>> selectAppList(NewsTypeReq newsTypeReq);

    ResponseData del(DelReq req);
}
